﻿@model W.Models.LogOnModel

@{
    ViewBag.Title = "Iniciar Sesión";
}
<h2>Iniciar Sesi&oacute;n</h2>
<div class="widget_inside">
    @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
    <div class="form">
        @using (Html.BeginForm()) {
            <div class="clearfix">
                <label>@Html.LabelFor(m => m.UserName)</label>
                <div class="input">
                    @Html.TextBoxFor(m => m.UserName, new { required = "required", placeHolder = "User Name" })
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
            </div>
            <div class="clearfix">
                <label>@Html.LabelFor(m => m.Password)</label>
                <div class="input">
                    @Html.PasswordFor(m => m.Password, new { required = "required", placeholder = "Password" })
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
            </div>
            <div class="clearfix">
                <label>@Html.LabelFor(m => m.RememberMe)</label>
                <div class="input">
                    @Html.CheckBoxFor(m => m.RememberMe)
                </div>
            </div>
            <div class="clearfix grey-highlight">
                <div class="input no-label">
                    <button type="submit" class="button green">Iniciar Sesi&oacute;n</button>
                    @Html.ActionLink("¿Eres Nuevo?", "Register")
                </div>
            </div>
        }
    </div>
</div>

@section scripts
{
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}